import http from '@/utils/http';
import request from '@/utils/request';

/**
 * 标签
 */
export async function getLabelList(body) {
  return http.get('/hotQa/label/list', body);
}

export async function fetchUpOrDownLabel(body) {
  return http.post('/hotQa/label/move', body);
}

export async function fetchRemoveLabel(body) {
  return http.post('/hotQa/label/delete', body);
}

export async function fetchEditLabel(body) {
  return http.post('/hotQa/label/edit', body);
}

export async function fetchAddLabel(body) {
  return http.post('/hotQa/label/add', body);
}

export async function fetchLabelInfoById(body) {
  return http.get('/hotQa/label/info', body);
}

export async function fetchHotQuestionList(body) {
  return http.get('/hotQa/qa/list', body);
}

export async function doRelatedDataByLabelId(body) {
  return http.post('/hotQa/qa/add', body);
}

export async function fetchSaveOrder(body) {
  return http.post('/hotQa/qa/edit', body);
}

export async function fetchRemoveQuestion(body) {
  return http.post('/hotQa/qa/delete', body);
}

/* 2.0版本 热点问题 */

//分页获取热点问题表格数据
export async function fetchHotTableData(body) {
  return http.get('/hotQa/label/listPage', body);
}

//获取全部用户类型-不分页
export async function fetchUserTypeList(params) {
  return http.post('/userTag/getUserTag', params);
}

